
public class Fluorine extends AbstractAtom{
	
	private float molWeight;
	private float atomicRadii; //radius in pm
	private float electroNeg;
	private int numOfBonds;
	private int electroCharge; //  -1 is negative, 0 is neutral, 1 is positive
	private String elementChar = "F";
	
	static int MAX_BONDS = 1;
	
	protected float ambient[] = {0.0f, 0.0f, 0.0f, 1.0f};
	protected float diffuse[] = {0.598f, 0.848f, 0.914f, 1.0f};
	protected float specular[] =   {0.8f, 0.6f, 0.6f, 1.0f};
    protected float emission[] = {0.0f, 0.0f, 0.0f, 1.0f};
	protected float shininess[] = {32.0f};
	
	Fluorine()
	{
		molWeight = 18.9984032f;
		atomicRadii = 50.0f;
		electroNeg = 3.98f;
		numOfBonds = 0;
		electroCharge = -1;			
	}
	
	//Get functions

	public float getMolWeight()
	{
		return molWeight;
	}
	
	public float getAtomicRadii()
	{
		return atomicRadii;
	}
	public float getElectroNeg()
	{
		return electroNeg;
	}
	public int getNumOfBonds()
	{
		return numOfBonds;
		
	}
	public int getNumOfMaxBonds()
	{
		return MAX_BONDS;
	}
	
	//Set functions
	
	public void addBond()
	{
		numOfBonds += 1;
		//checks to see if the charge is affected
		checkElectroCharge();
	}
	
	public void removeBond()
	{
		numOfBonds -= 1;
		checkElectroCharge();
	}
	
	//Electro charge check
	
	public void checkElectroCharge()
	{
		if (numOfBonds > 1) { electroCharge = 1; }
		if (numOfBonds < 1) { electroCharge = -1; }
		if (numOfBonds == 1) { electroCharge = 0; }

	}
}
